package cqrtplm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import cqrtplm.constant.RTTableTypeConstant;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;

@Entity
@Table(name = "RT_COD_MATERIAL")
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_CODE_SEQUENCE_MATERIAL
)
public class CodeMaterialDO extends CTyEntityBaseDO {
    /**
     * 图样代号
     */
    @TableField(value = "drawing_code")
    private String drawingCode;

    /**
     * 单色
     */
    @TableField(value = "monochrome")
    private String monochrome;

    /**
     * 复合色
     */
    @TableField(value = "COMPOSITE_COLOR")
    private String compositeColor;

    @TableField(value = "COMPOSITE_COLOR_VALUE")
    private String compositeColorValue;

    @Id
    private BigInteger oid;

    @TyOtype(
            name = RTTableTypeConstant.TYPE_CODE_SEQUENCE_MATERIAL
    )
    private String otype = RTTableTypeConstant.TYPE_CODE_SEQUENCE_MATERIAL;

    @TableField(value = "flow_code")
    private String flowCode;

    public CodeMaterialDO() {

    }

    public String getDrawingCode() {
        return drawingCode;
    }

    public void setDrawingCode(String drawingCode) {
        this.drawingCode = drawingCode;
    }

    public String getMonochrome() {
        return monochrome;
    }

    public void setMonochrome(String monochrome) {
        this.monochrome = monochrome;
    }

    public String getCompositeColor() {
        return compositeColor;
    }

    public void setCompositeColor(String compositeColor) {
        this.compositeColor = compositeColor;
    }

    public String getCompositeColorValue() {
        return compositeColorValue;
    }

    public void setCompositeColorValue(String compositeColorValue) {
        this.compositeColorValue = compositeColorValue;
    }

    public BigInteger getOid() {
        return oid;
    }

    public void setOid(BigInteger oid) {
        this.oid = oid;
    }

    public String getOtype() {
        return otype;
    }

    public void setOtype(String otype) {
        this.otype = otype;
    }

    public String getFlowCode() {
        return flowCode;
    }

    public void setFlowCode(String flowCode) {
        this.flowCode = flowCode;
    }
}
